object Form1: TForm1
  Left = 192
  Top = 107
  Width = 600
  Height = 540
  Caption = 'Form1'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object DBGrid1: TDBGrid
    Left = 0
    Top = 176
    Width = 592
    Height = 337
    Align = alBottom
    DataSource = DataSource1
    TabOrder = 0
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = []
    Columns = <
      item
        Alignment = taCenter
        Expanded = False
        FieldName = 'ID'
        Title.Alignment = taCenter
        Title.Caption = 'Id do contato'
        Title.Color = clMoneyGreen
        Title.Font.Charset = DEFAULT_CHARSET
        Title.Font.Color = clWindowText
        Title.Font.Height = -11
        Title.Font.Name = 'MS Sans Serif'
        Title.Font.Style = [fsBold]
        Width = 119
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'NOME'
        Title.Caption = 'Nome do Contato'
        Width = 318
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'TELEFONE'
        Title.Caption = 'Telefone'
        Visible = True
      end>
  end
  object DBNavigator1: TDBNavigator
    Left = 0
    Top = 0
    Width = 240
    Height = 25
    DataSource = DataSource1
    TabOrder = 1
  end
  object DBEdit1: TDBEdit
    Left = 40
    Top = 56
    Width = 121
    Height = 21
    DataField = 'ID'
    DataSource = DataSource1
    TabOrder = 2
  end
  object DBEdit2: TDBEdit
    Left = 40
    Top = 96
    Width = 329
    Height = 21
    DataField = 'NOME'
    DataSource = DataSource1
    TabOrder = 3
  end
  object DBEdit3: TDBEdit
    Left = 40
    Top = 136
    Width = 121
    Height = 21
    DataField = 'TELEFONE'
    DataSource = DataSource1
    TabOrder = 4
  end
  object Button1: TButton
    Left = 392
    Top = 96
    Width = 75
    Height = 25
    Caption = 'Button1'
    TabOrder = 5
    OnClick = Button1Click
  end
  object IBDatabase1: TIBDatabase
    DatabaseName = 
      'C:\Documents and Settings\noite\Desktop\TSW\repositorio-tsw\db\B' +
      'ANCO.GDB'
    Params.Strings = (
      'user_name=SYSDBA'
      'password=masterkey')
    LoginPrompt = False
    DefaultTransaction = IBTransaction1
    IdleTimer = 0
    SQLDialect = 3
    TraceFlags = []
    Left = 312
    Top = 24
  end
  object IBTransaction1: TIBTransaction
    Active = False
    DefaultDatabase = IBDatabase1
    AutoStopAction = saNone
    Left = 344
    Top = 24
  end
  object qryContato: TIBQuery
    Database = IBDatabase1
    Transaction = IBTransaction1
    BufferChunks = 1000
    CachedUpdates = False
    SQL.Strings = (
      'select *  from CONTATO'
      'order by nome')
    UpdateObject = IBUpdateSQL1
    Left = 400
    Top = 24
    object qryContatoID: TIntegerField
      FieldName = 'ID'
      Origin = 'CONTATO.ID'
      Required = True
    end
    object qryContatoNOME: TIBStringField
      FieldName = 'NOME'
      Origin = 'CONTATO.NOME'
      Size = 100
    end
    object qryContatoTELEFONE: TIBStringField
      FieldName = 'TELEFONE'
      Origin = 'CONTATO.TELEFONE'
    end
  end
  object IBUpdateSQL1: TIBUpdateSQL
    RefreshSQL.Strings = (
      'Select '
      '  ID,'
      '  NOME,'
      '  TELEFONE'
      'from CONTATO '
      'where'
      '  ID = :ID')
    ModifySQL.Strings = (
      'update CONTATO'
      'set'
      '  ID = :ID,'
      '  NOME = :NOME,'
      '  TELEFONE = :TELEFONE'
      'where'
      '  ID = :OLD_ID')
    InsertSQL.Strings = (
      'insert into CONTATO'
      '  (ID, NOME, TELEFONE)'
      'values'
      '  (:ID, :NOME, :TELEFONE)')
    DeleteSQL.Strings = (
      'delete from CONTATO'
      'where'
      '  ID = :OLD_ID')
    Left = 440
    Top = 16
  end
  object DataSource1: TDataSource
    DataSet = qryContato
    Left = 480
    Top = 16
  end
end
